<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;


class Collection extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

     public function materials()
    {
        return $this->hasMany(Material::class);
    }

     public function collectionImages()
    {
        return $this->hasMany(CollectionImage::class);
    }

     public function gcGroup()
    {
        return $this->belongsTo(GcGroup::class);
    }

      public function gcCategory()
    {
        return $this->belongsTo(GcCategory::class);
    }
}
